<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 

<%String path = request.getContextPath();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <link href="<%=path %>/css/index.css" type="text/css" rel="stylesheet" />
    <link href="<%=path %>/css/base.css" type="text/css" rel="stylesheet" />
    
    <style type="text/css">
		
	</style>

    <script type="text/javascript">
        	function ccc()
		    {
		        if(document.form1.userName.value=="")
		        {
		            alert("请输入账号");
		            return false;
		        }
		        
		        if(document.form1.userPw.value=="")
		        {
		            alert("请输入密码");
		            return false;
		        }
				
				
		        if(document.form1.userRealname.value=="")
		        {
		            alert("请输入姓名");
		            return false;
		        }
		        
		        
		        document.form1.submit();
		    }	
	</script>
</head>
  
<body>
	<div class="banner">
        <jsp:include flush="true" page="/qiantai/top.jsp"></jsp:include>
	</div>


    <div class="main01" style="margin-top: 10px;">
    	<!-- <h2>
            <span style="font-size: 18px;font-weight:900 ">用户注册</span>
            <div class="right" style="font-size: 14px;">dd</div>
        </h2> -->
        <div class="goods">
        	<FORM name="form1" method="post" action="<%=path %>/userEditMe.action"> 
					   <TABLE align="left" border="0" cellpadding="8">
					        <tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									账号：									    
								</td>
								<td align="left">
									<input type="text" name="userName" style="width: 300px;" value="${sessionScope.user.userName }" readonly="readonly"/>(只读)
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									密码：										    
								</td>
								<td align="left">
									<input type="password" name="userPw" value="${sessionScope.user.userPw }" style="width: 300px;"/>
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									姓名：										    
								</td>
								<td align="left">
									<input type="text" name="userRealname" value="${sessionScope.user.userRealname }" style="width: 300px;"/>
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									性别：										    
								</td>
								<td align="left">
									<input type="radio" name="userSex" value="男" checked="checked"/>男
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="radio" name="userSex" value="女"/>女
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									年龄：										    
								</td>
								<td align="left">
									<input type="text" name="userAge" style="width: 300px;" value="${sessionScope.user.userAge }" onkeyup="value=value.replace(/[^\d]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
							    </td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									住址：										    
								</td>
								<td align="left">
									<input type="text" name="userAddress" style="width: 460px;" value="${sessionScope.user.userAddress }"/>
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
								<td style="width: 50px;" align="right">
									电话：										    
								</td>
								<td align="left">
									<input type="text" name="userTel" style="width: 300px;" value="${sessionScope.user.userTel }"/>
								</td>
							</tr>
							<tr align='center' style="height: 38px;">
							   <td style="width: 50px;" align="left"></td>
							   <td align="left">
							      <input type="hidden" name="userId" value="${sessionScope.user.userId }"/>
							      <input type="button" value="提交" style="width: 70px;" onclick="ccc()"/>&nbsp; 
							      <input type="reset" value="重置" style="width: 70px;"/>&nbsp;	
							   </td>
							</tr>
					   </TABLE>
				   </FORM>    
        </div>
    </div>
    
    
    <br/>
    <div class="bottom" style="position:absolute;bottom:0px;">
        <jsp:include flush="true" page="/qiantai/down.jsp"></jsp:include>
    </div>
</body>
</html>
